Release 10.1A: OpenEdge Data Management:
SQL Reference


YEAR

Returns the year as a short integer value in the range of 0–9999.

Syntax

YEAR ( date_expression ) 

Example

The example illustrates the YEAR function. The query returns all columns in rows in the orders table where the year in the order_date column is equal to ‘2003’:

SELECT *
    FROM orders
    WHERE YEAR (order_date) = 2003; 

Notes

Compatibility

ODBC compatible


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095